package com.shimao.celnet.payment.service;


import com.shimao.celnet.payment.model.PPayCUPUser;

import java.util.List;
import java.util.Map;


/**
 * 通联支付管理service
 * Created by Galen on 2018/10/29.
 */
public interface PPayCupUserService extends IService<PPayCUPUser> {

    /**
     * 获取该用户的绑定卡相关信息
     *
     * @param meruserid
     * @return
     */
    List<PPayCUPUser> findCUPUserByMeruserid(String meruserid, String custid);


    /**
     * 获取该用户的绑定卡相关信息
     *
     * @param meruserid
     * @param agreeid
     * @return
     */
    PPayCUPUser findCUPUserByMeruseridAndAgreeid(String meruserid, String agreeid);

    /**
     * 获取无效注册信息数据
     *
     * @return
     */
    List<PPayCUPUser> findInvalidCUPUsers();

    /**
     * @return com.shimao.celnet.payment.model.PPayCUPUser
     * @Author Galen
     * @Description //TODO 通过CUP的相关信息获取注册信息
     * @Date 11:40 2018/11/21
     * @Param [cupMap]
     */
    PPayCUPUser findCUPUserByCUPMap(Map<String, String> cupMap);

    /**
     * @return com.shimao.celnet.payment.model.PPayCUPUser
     * @Author Galen
     * @Description //TODO 根据用户号和银行卡号获取注册信息
     * @Date 13:53 2018/11/21
     * @Param [meruserid, acctno]
     */
    PPayCUPUser findCUPUserByMeruseridAndBankCardNo(String meruserid, String acctno);

    /**
     * 获取该用户的绑定卡根据用户号
     *
     * @param meruserid
     * @return
     */
    PPayCUPUser findCUPUserByMeruserid(String meruserid);
}
